package com.woniu.common.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResponseEnum {

    SUCCESS(200, "success"),
    FAIL(500, "fail"),
    ACCOUNT_NOT_EXIST(601, "用户不存在"),
    LOGIN_ERROR(602,"账号密码错误"),
    USER_NULL(603,"用户不能为空"),
    PWD_NULL(604,"密码不能为空"),
    PHONE_NULL(605,"手机号不能为空"),
    CAPTCHA_NULL(606,"验证码不能为空"),
    ACCOUNT_NULL(607,"账号不能为空"),
    REPEAT_PUTAWAY(608,"商品重复上架"),
    REPEAT_SOLDOUT(609,"商品重复下架"),
    ACCOUNT_ALREADY_EXIST(610,"该账户已存在"),
    ORDER_HAS_CANSEL(611,"订单已超时"),
    DUPLICATE_PAY(612,"请勿重复支付"),
    PHONE_ERROR(616,"电话号码错误"),
    MESSAGE_NULL(614,"信息为空"),
    SYSTEM_OUT(615,"系统错误，请重试"),
    QUERY_EMPTY(613,"查询：null")
    ;
    private Integer code;
    private String msg;
}
